package com.example.dubbo.consumer.controller;

import com.example.dubbo.consumer.service.TestService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author mengwei
 * @date 2021/12/17
 */
@RestController
@RequestMapping("/test")
public class TestController {
    @Autowired
    private TestService testService;

    @RequestMapping("")
    public String test(@RequestParam String msg){
        return testService.test(msg);
    }
}
